package com.mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.entity.OmsCartItem;
import com.mall.entity.OmsOrderItem;
import com.mall.mapper.OmsCartItemMapper;
import com.mall.mapper.OmsOrderItemMapper;
import com.mall.service.OmsCartItemService;
import com.mall.service.OmsOrderItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OmsOrderItemServiceImpl  extends ServiceImpl<OmsOrderItemMapper, OmsOrderItem> implements OmsOrderItemService {

    @Resource
    private OmsOrderItemMapper orderItemMapper;

    @Override
    public List<OmsOrderItem> getOrderItems(Long id) {
        return orderItemMapper.getOrderItems(id);
    }
}
